<?php
class Crm_detail extends CI_Controller {
	public function __construct()
	{
		parent::__construct();
		$this->load->helper('url');
		$this->load->model('crm_model');
	}

	public function view($page = 'crm_detail')
	{

		if ( ! file_exists('application/views/crm/'.$page.'.php'))
		{
			// 页面不存在
			show_404();
		}
		$company_name = $this->input->get('keywords');
		$data['company_detail'] = $this->crm_model->get_company_detail($company_name);
			$this->load->view('crm/crm_detail', $data);
	}
}